<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/gbcp_cpmd.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/gbcp_cpmd.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'gbcp_cpmd_id',
                footer: "Foots",
                cnName: '测评干部名单',
                name: 'jrtable/gbcp_cpmd',
                url: "/gbcp_cpmd/",
                sortName: "yjjg"
            });
            const editFormFields = ref({"xgh":"","name":"","yjjg":"","ejjg":"","jtgj":"","email":"","zzmm":"","ygh":"","gbkpxh":"","tpmax":""});
            const editFormOptions = ref([[{"title":"新工号","field":"xgh"},
                               {"title":"姓名","field":"name"}],
                              [{"title":"一级机构","field":"yjjg"},
                               {"title":"二级机构","field":"ejjg"}],
                              [{"title":"集团岗级","field":"jtgj"},
                               {"title":"邮箱地址","field":"email"}],
                              [{"title":"政治面貌","field":"zzmm"},
                               {"title":"原工号","field":"ygh"}],
                              [{"title":"干部考评分类细化","field":"gbkpxh"},
                               {"title":"投票最大数","field":"tpmax","type":"number"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'gbcp_cpmd_id',title:'干部测评名单',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'xgh',title:'新工号',type:'string',width:220,align:'left',sort:true},
                       {field:'name',title:'姓名',type:'string',link:true,width:220,align:'left'},
                       {field:'yjjg',title:'一级机构',type:'string',width:220,align:'left'},
                       {field:'ejjg',title:'二级机构',type:'string',width:220,align:'left'},
                       {field:'jtgj',title:'集团岗级',type:'string',width:220,align:'left'},
                       {field:'email',title:'邮箱地址',type:'string',width:220,align:'left'},
                       {field:'zzmm',title:'政治面貌',type:'string',width:220,align:'left'},
                       {field:'ygh',title:'原工号',type:'string',width:220,align:'left'},
                       {field:'gbkpxh',title:'干部考评分类细化',type:'string',width:220,align:'left'},
                       {field:'tpmax',title:'投票最大数',type:'int',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
